public class Literals {
    public static void main(String[] args) {
        int i1 = 0x2f;  // hexadecimal
        System.out.println("i1: " + Integer.toBinaryString(i1));

        int i2 = 0X2F;  // hexadecimal
        System.out.println("i2: " + Integer.toBinaryString(i2));

        int i3 = 0177;
        System.out.println("i3: " + Integer.toBinaryString(i3));

        char c = 0xffff;  // max char in hex
        System.out.println("c: " + Integer.toBinaryString(c));

        byte b = 0x7f;   // max byte in hex
        System.out.println("b: " + Integer.toBinaryString(b));


        short s = 0x7fff;  // max short in hex
        System.out.println("s: " + Integer.toBinaryString(s));

        long n1 = 200L;
        System.out.println("n1: " + Long.toBinaryString(n1));

        float f1 = 1.0f;
        float f2 = 1.0F;

        double d1 = 1.0d;
        double d2 = 1.0D;
    }
}
